


function tablecareSelect(menuClassName,textClassName ){
    let index = 0; //定义上一个值的索引

let loginA = document.querySelectorAll(menuClassName)
let maskBox = document.querySelectorAll(textClassName)

loginA.forEach(function(dom,i){
    dom.addEventListener('click', function(){
        loginA[index].classList= ' '
        this.classList ='active'
        
        maskBox[index].classList.remove('on')
        maskBox[i].classList.add('on')
        index = i
    })
})
}
